<ui:composition xmlns="http://www.w3.org/1999/xhtml"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:ui="http://java.sun.com/jsf/facelets"
            xmlns:p="http://primefaces.org/ui">

    <p:themeSwitcher value="#{themeSwitcherBean.theme}" style="width:175px;" effect="fade" var="t">
        <f:selectItem itemLabel="Choose Theme" itemValue="" />
                        <f:selectItems value="#{themeSwitcherBean.advancedThemes}" var="theme" itemLabel="#{theme.name}" itemValue="#{theme}"/>
                        <p:ajax listener="#{themeSwitcherBean.saveTheme}" />
                        
                        <p:column>
                            <h:graphicImage name="/images/themes/#{t.image}" />
                        </p:column>
                        
                        <p:column>
                            #{t.name}
                        </p:column>
    </p:themeSwitcher>
    
</ui:composition>